package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.base.entity.BaseDistrictEntity;
import com.yuanfeng.commoms.vo.shop.ShopAllBaseDistrictVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName BaseDistrictMapper
 * @Description 地区表
 * @Author cf
 * @Date 2023/6/14 15:04
 * @Version 1.0
 */
@Mapper
public interface BaseDistrictMapper extends BaseMapper<BaseDistrictEntity> {
    /**
     * 根据地区id查询名称
     * @param provinceId
     * @return
     */
    String queryProvinceport(@Param("provinceId")String provinceId);

    /**
     * 查询所有地址
     * @return
     */
    List<ShopAllBaseDistrictVO> selectAllDistrict();

    /**
     * 查询地区名称
     * @param districtIds
     * @return
     */
    List<String> selectByIdList( @Param("districtIds")List<Integer> districtIds);

    /**
     * 查询地区表所对应的名称
     *
     * @param districtMap
     * @return
     */
    List<String> queryRegionName(Map<String, Integer> districtMap);



}
